package com.djhu.es.core.request;

import org.elasticsearch.index.query.QueryBuilder;

/**
 * Created by zw on 2018/1/17.
 */
public class MustNotSearchRequest implements SearchRequest{
    private int timeout = 36000;
    private SearchRequest searchRequest;

    @Override
    public String index() {
        return null;
    }

    @Override
    public String type() {
        return null;
    }

    @Override
    public int timeout() {
        return timeout;
    }

    @Override
    public QueryBuilder queryBuilder() {
        return searchRequest.queryBuilder();
    }

    public int getTimeout() {
        return timeout;
    }

    public void setTimeout(int timeout) {
        this.timeout = timeout;
    }

    public SearchRequest getSearchRequest() {
        return searchRequest;
    }

    public void setSearchRequest(SearchRequest searchRequest) {
        this.searchRequest = searchRequest;
    }
}